package com.briup.cms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.briup.cms.bean.Role;
import com.briup.cms.dao.RoleDao;
import com.briup.cms.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author briup
 * @since 2025-03-19
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleDao, Role> implements IRoleService {
    @Autowired
    private RoleDao roleDao;
    //查询所有角色
    @Override
    public List<Role> list() {
        return roleDao.selectList(null);
    }

}
